package com.moodincode.taskcenter;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class Test2 extends QuartzJobBean {
    @Autowired
    private ITestService testService;
    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        System.out.println("hello Test2=======");
        testService.hello();
    }
}
